print(1)
student = {'name': 'zkj', 'year': 20, 'id': 241402020204}  # 创建字典
print(student)
print(type(student))
print(len(student))
print()

print(2)
student1 = dict(name='jkz', year=20, id=241402020204)  # 用函数创建字典
print(student1)
print(type(student1))
print(len(student1))
print()

print(3)
print(student1['name'], student['name'])
student1['id'] = 123456  # 修改字典的值
print(student1['id'])
print()

print(4)
del student1['name']  # 删除键 'name'
print(student1)
print()

print(5)
student1.clear()  # 清空字典
print(student1)
print()

print(6)
student1['name'] = 'zkj'  # 增加一个key
print(student1)
print()

print(7)
del student1  # 删除字典
print()

print(8)
print(student)
student.clear()  # 删除字典内所有元素
print(student)
print()
